/**
 * Copyright (c) 2018-2028, Joffee.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.sailmi.system;
import com.sailmi.common.constant.LaunchConstant;
import com.sailmi.common.launcher.AppLauncher;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Joffee
 * 系统模块启动器
 * 关于租户、系统、企业、菜单的关系
 * 租户创建系统
 * 菜单属于系统
 * 服务是一系例菜单的集合
 * 企业属于租户
 * 企业采购了服务，才能看到相应租户提供的菜单
 * 企业数据采用
 * 服务包不应该属于某个系统
 */
@SpringBootApplication
@EnableFeignClients({"com.sailmi.system.feign"})
@ComponentScan({"com.sailmi.system.**.*","com.sailmi.boot.**.*","com.sailmi.**.*"})
@MapperScan({"com.sailmi.**.mapper.**", "com.sailmi.**.mapper.**"})
public class SystemApplication {

	public static void main(String[] args) {
		AppLauncher.run(LaunchConstant.APPLICATION_SYSTEM_NAME, SystemApplication.class, args);
	}

}

